<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

<div class="info">

<form action="" method="post" enctype="multipart/form-data" >
<input type="hidden" name="scid" value="<?php echo isset($item['scid'])?$item['scid']:'';?>" />
<table border="1" class="table">
  <tr><th colspan="2">添加成就</th></tr>
  <tr>
    <td width="30%">成就名字:</td>
    <td width="70%" class="left"><input type="text" name="name" value="<?php echo isset($item['name'])?$item['name']:'';?>" /></td>
  </tr>
   <tr>
    <td>成就类型:</td>
    <td class="left">
    	<select name="type">
    		<option value="1" <?php echo isset($item['type']) && $item['type'] == 1 ? 'selected' : '';?> >游戏币数</option>
    		<option value="2" <?php echo isset($item['type']) && $item['type'] == 2 ? 'selected' : '';?> >好友个数</option>
    		<option value="3" <?php echo isset($item['type']) && $item['type'] == 3 ? 'selected' : '';?> >邀请个数</option>
    		<option value="4" <?php echo isset($item['type']) && $item['type'] == 4 ? 'selected' : '';?> >灌醉人数</option>
    		<option value="5" <?php echo isset($item['type']) && $item['type'] == 5 ? 'selected' : '';?> >胜利局数</option>
    		<option value="6" <?php echo isset($item['type']) && $item['type'] == 6 ? 'selected' : '';?> >连开并胜利局数</option>
    		<option value="7" <?php echo isset($item['type']) && $item['type'] == 7 ? 'selected' : '';?> >赠送礼物个数</option>
    		<option value="8" <?php echo isset($item['type']) && $item['type'] == 8 ? 'selected' : '';?> >收到礼物个数</option>
    		<option value="9" <?php echo isset($item['type']) && $item['type'] == 9 ? 'selected' : '';?> >连续登陆次数</option>
        </select></td>
  </tr>
  <tr>
    <td>所需条件:</td>
    <td class="left"><input type="text" name="achive" value="<?php echo isset($item['achive'])?$item['achive']:'';?>" /></td>
  </tr>
  <tr>
  <td>上传FLASH:</td>
  <td class="left">
  	<?php if(isset($item['file']) && !empty($item['file'])): ?>
  		<object classid="clsid:D27CDB6E-AE6D-11cf- 96B8-444553540000" width="100" height="100">
			<param name="movie" value="<?php echo $tmp_url . $item['file'] ?>"> 
			<param name="quality" value="high">
			<param name="bgcolor" value="#FFFFFF">
			<!--[if !IE]> <-->
			<object data="<?php echo $tmp_url . $item['file'] ?>" width="100" height="100" type="application/x-shockwave-flash">
				<param name="quality" value="high">
				<param name="bgcolor" value="#FFFFFF">
				<param name="pluginurl" value="<?php echo $tmp_url . $item['file'] ?>">
			</object>
			<!--> <![endif]-->
		</object>
  	<?php endif;?>
  	<br />
  	<input type="file" name="file" id="file" />
  </td>
  </tr>
  <tr>
    <td>成就描述:</td>
    <td class="left">
    	<textarea  name="desc" cols="25" rows="5"><?php echo isset($item['desc'])?$item['desc']:'';?></textarea>
   </td>
 </tr>
  <tr>
   <td colspan="2">
   	<input type="hidden" name="form_id" value="<?php echo time() ?>" />
   	<input type="submit" value="保存" /> 
   </td>
   </tr>
</table>
</form>
</div>
</body>
</html>